import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/styles/reset.css'
import './mock'
// 按需引入element
import './plugins/element'
// 导入表单验证插件
import './plugins/vee-validate'
// 引入图片懒加载
import './plugins/vue-lazyload'
import 'element-ui/lib/theme-chalk/index.css'
import plugin from './components'
// 使用插件
Vue.use(plugin)
Vue.config.productionTip = false

new Vue({
  beforeCreate() {
    Vue.prototype.eventBus = this
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
